import httpRequest from "@/axios/index.js"

/**
 * 查询字典类型列表
 */
 export function querySelectiveReq(pageNum,pageSize,data){
    return httpRequest({
        url:"/sys/dict/type/list?pageNum="+pageNum+"&pageSize="+pageSize,
        method:"post",
        data:data
    })
}

/**
 * 添加字典
 */
 export function addReq(data){
    return httpRequest({
        url:"/sys/dict/type/add",
        method:"post",
        data:data
    })
}

/**
 * 修改字典
 */
 export function updateReq(data){
    return httpRequest({
        url:"/sys/dict/type/update",
        method:"put",
        data:data
    })
}

/**
 * 删除字典
 */
 export function deleteReq(ids){
    return httpRequest({
        url:"/sys/dict/type/delete",
        method:"post",
        data:ids
    })
}